class_name MoonBladeWave
extends MagicBulletBase


@export var dir: Vector2 
@export var speed: float = 500
@export var max_life_time: float = 0.3


func _ready() -> void:
	await get_tree().create_timer(max_life_time).timeout
	queue_free()


func _physics_process(delta: float) -> void:
	process_move(delta)
	process_hit()
	

func process_move(delta: float):
	position += dir * speed * delta
